package com.yanqu.road.entity.enums;

/**
 * 充值首充双倍位（2进制位）
 */
public enum eRechargeGainIndex {
    GameFirstDouble(0, "游戏内首充双倍"),
    ThirdPartyFirstDouble( 1,"第三方首充双倍"),

    ;


    private int intValue;

    private String name;

    eRechargeGainIndex(int value, String name) {
        intValue = value;
        this.name = name;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

    public static eRechargeGainIndex forValue(int value) {
        for (eRechargeGainIndex type : eRechargeGainIndex.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
